//详情
const db = require("../lib/db");
function authorContent(){
    return new Promise((resolve,reject)=>{
        //首页文章
        let sql = "select * from content ";
        db.querySql(sql).then(data=>{
            if(data.length == 0){
                console.log("空")
            }else{
                resolve(data)

            }
        })

    })
}
module.exports = authorContent;